package ArrayList集合;

import java.util.ArrayList;

/**
 * @author Administrator
 * @ClassName ArrayListTest
 * @TIME 星期三 2020/12/30
 */
public class ArrayListTest {
    public static void main(String[] args) {
        ArrayList<String> arrList = new ArrayList<>();
        arrList.add(0, "小仓");
        arrList.add(1, "小泽");
        arrList.add(2, "小明");
        System.out.println("集合: " + arrList);
        System.out.println("删除: " + arrList.remove(0));
        System.out.println("修改: " + arrList.set(0,"小黑"));
        System.out.println("修改: " + arrList.get(1));

    }
}
